#ifndef BTFORM_H
#define BTFORM_H

#include <QWidget>
#include <QPropertyAnimation>

namespace Ui {
class btForm;
}

class btForm : public QWidget
{
    Q_OBJECT

public:
    explicit btForm(QWidget *parent = nullptr);
    ~btForm();
    void seticon(QString btIcon,QString content,int mid);
    void clearBg();
    int getId();
signals:
    void click(int id);
protected:
    virtual void mousePressEvent(QMouseEvent *event);
private:
    Ui::btForm *ui;
    int id = 0;
    QPropertyAnimation *animationLine1;
    QPropertyAnimation *animationLine2;
    QPropertyAnimation *animationLine3;
    QPropertyAnimation *animationLine4;
};

#endif // BTFORM_H
